/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/08/31
* File: CubeUiAniSceneNode.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#ifndef CubeUiAniSceneNode_h__
#define CubeUiAniSceneNode_h__

#include "../RenderFrame/Device/RF.h"

class CubeUiAniSceneNode : public AnimationSceneNode
{
public:
	CubeUiAniSceneNode(
		SceneManager* scene_mgr, 
		s32 id = -1,
		s32 type = 0);
	~CubeUiAniSceneNode();

	void render();

	void onAnimation(f32 time);

	void setupContent();

protected:
	void setupCube();

protected:
	GraphicsBuffer*		_vbo_buffer;
	GraphicsBuffer*		_idx_buffer;
};

#endif    /* CubeUiAniSceneNode_h__ */